package com.client.model.pojo.bank;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 *
 * @TableName ar_electronic
 */
@TableName(value ="ar_electronic")
@Data
public class ArElectronic implements Serializable {
    /**
     * 电子账户表
     */
    @TableId(value = "eid")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long eid;

    /**
     * 电子账户卡号
     */
    @TableField(value = "card")
    private String card;

    /**
     * 与salt进行加密
     */
    @TableField(value = "pay_password")
    private String payPassword;

    /**
     * 账户余额
     */
    @TableField(value = "balance")
    private BigDecimal balance;

    /**
     * 今日提现累计金额
     */
    @TableField(value = "day_drawal")
    private BigDecimal dayDrawal;

    /**
     * 最近的一次提现时间
     */
    @TableField(value = "latest_drawal")
    private Date latestDrawal;

    /**
     * 主副卡排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     *
     */
    @TableField(value = "remark")
    private Integer remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 默认是0值
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 所属用户外键
     */
    @TableField(value = "uid")
    private Long uid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
